﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
     Inherits="SouthernLand.Articles.Default" CodeBehind="Default.aspx.cs" %>

<%@ Import Namespace="SouthernLand.Common.BOL.Articles" %>
<%@ Register Src="~/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ArticlesByParent.ascx" TagName="ArticlesByParent" TagPrefix="uc" %>
<%@ Register TagPrefix="southern" Namespace="SouthernLand.Common.Untilities" Assembly="SouthernLand" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" runat="Server">
    <uc:Title Visible="false" runat="server" ID="Title1" />
    <asp:UpdatePanel ID="UpdatePanelArticles" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
                <tr>
                   <td class="list-real-estate-frame-top-left">
                        &nbsp;
                    </td>
                    <td align="left" class="list-real-estate-frame-top width-98-5-pct">
                        <span class="Frame_Title">
                            <asp:Label runat="server" ID="FrameTitle"></asp:Label></span>
                    </td>
                     <td class="list-real-estate-frame-top-right">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                     <td class="list-real-estate-frame-mid-left">
                    </td>
                    <td class="padding-top-10 width-98-5-pct">
                        <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center">
                            <tr>
                                <td>
                                    <uc:ArticlesByParent runat="server" ID="ArticlesByParent" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Panel runat="server" ID="PanelMsg" Visible="false">
                                        <div align="center" style="padding: 20px;">
                                            <asp:Label runat="server" ID="lblMsg" CssClass="lblMsg"></asp:Label>
                                        </div>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Panel runat="server" ID="PanelArticles">
                                        <asp:Repeater ID="rptArticles" runat="server">
                                            <ItemTemplate>
                                                <tr>
                                                    <td valign="top" align="left">
                                                        <div class="padding-bottom-3pt">
                                                        <asp:HyperLink ID="hplNewsTitle" runat="server" CssClass="NewsTitle"></asp:HyperLink>
                                                            <span class="NewsTime">(<%# Formatter.FormatDateTime((DateTime)Eval("PostDate"))%>)</span>
                                                            <%# Article.GetImageHot(ConvertUtility.ToInt32(Eval("ArticleID"))) %>
                                                        </div>
                                                        <table class="<%#Globals.CheckImage(Convert.ToString(Eval("ImageURL"))) %>" cellspacing="5"
                                                            cellpadding="0" align="left" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td class="BorderImage">
                                                                        <southern:ImageObject Width="130" ImageFilter='off' BorderStyle="solid" BackColor="Gray"
                                                                            BorderWidth="1px" ID="img1" runat="server" ImagePath='<%# Globals.ApplicationPath  + "UserUpload/Articles/" %>'
                                                                            ImageName='<%# Eval("ImageURL") %>' />
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <div class="excerpt-text">
                                                            <%#Eval("Excerpt") %>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" class="read-more-box">
                                                        <img src="<%=Globals.ImagesUrl()%>arrow.gif" />
                                                        <asp:HyperLink ID="hplReadMore" runat="server" CssClass="ReadMore"></asp:HyperLink>                                                        
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="news-line-break padding-3">
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div align="center">
                                        <asp:Panel ID="DisplayPager" Visible="True" runat="server">
                                            <div align="center">
                                                <table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
                                                    <tr>
                                                        <td valign="middle" align="center">
                                                            <southern:Pager CssClass="LinkButton" ID="Pager" runat="server" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="middle" align="center">
                                                            <southern:CurrentPage ID="CurrentPage" runat="server" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <br />
                        <br />
                    </td>
                    <td class="list-real-estate-frame-mid-right">
                    </td>
                </tr>
                <tr>
                    <td class="list-real-estate-frame-bot-left">
                    </td>
                    <td align="center" class="list-real-estate-frame-bot-center">
                    </td>
                    <td class="list-real-estate-frame-bot-right">
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
